package com.api.demo.dto.sync;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @description: 同步任务DTO
 * @author: yanming
 * @createDate: 2022/10/04 10:29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "同步任务DTO")
public class SyncDataTaskDTO extends SyncDataDTO {

    private static final long serialVersionUID = 3894541723709932009L;

    @ApiModelProperty(value = "taskId",required = true)
    @NotBlank(message = "任务ID不能为空")
    private String taskId;

    @ApiModelProperty(value = "商户ID",required = true)
    @NotBlank(message = "商户ID不能为空")
    private String companyId;

    @ApiModelProperty(value = "服务商统一信用代码", required = true)
    @NotBlank(message = "服务商统一信用代码不能为空")
    private String taxCreditCode;

    @ApiModelProperty(value = "任务名称",required = true)
    @NotBlank(message = "任务名称不能为空")
    private String taskName;

    @ApiModelProperty(value = "任务描述",required = true)
    @NotBlank(message = "任务描述不能为空")
    private String taskDesc;

    @ApiModelProperty(value = "创建时间",required = true)
    @NotBlank(message = "创建时间不能为空")
    private String createDate;

    @ApiModelProperty(value = "最小费用")
    private BigDecimal taskCostMin;

    @ApiModelProperty(value = "最大费用")
    private BigDecimal taskCostMax;

    @ApiModelProperty(value = "任务类型",required = true)
    @NotBlank(message = "任务类型不能为空")
    private String taskTypeName;

    @ApiModelProperty(value = "开票类目",required = true)
    @NotBlank(message = "开票类目不能为空")
    private String billingCategory;

}